<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <#-- 设置凭据信息ID的隐藏域 -->
    <input type="hidden" name="id" value="${(voucher.id)!}">

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">凭据编号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="voucherNo" id="voucherNo"
                   value="${(voucher.voucherNo)!}" placeholder="请输入凭据编号">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">凭据名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="voucherName" id="voucherName"
                   value="${(voucher.voucherName)!}" placeholder="请输入凭据名称">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">凭据类型</label>
        <div class="layui-input-block">
            <select name="voucherType" id="voucherType" lay-verify="required">
                <option value="">请选择凭据类型</option>
                <option value="1">借据</option>
            </select>
        </div>
    </div>

    <#--    <div class="layui-form-item layui-row layui-col-xs12">-->
    <#--        <label class="layui-form-label">开票日期</label>-->
    <#--        <div class="layui-input-block">-->
    <#--            <input type="text" class="layui-input" lay-verify="date" name="voucherDate"-->
    <#--                   value="${(voucher.voucherDate)!}" id="voucherDate" placeholder="请输入开票日期">-->
    <#--        </div>-->
    <#--    </div>-->
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">概要</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入概要" name="overview" class="layui-textarea">${(voucher.overview)!}</textarea>
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit="" lay-filter="addOrUpdateSaleChance">确认</button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx}/js/voucher/add.update.js"></script>
</body>
</html>